Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model summary print instead of logging #562

Closed
wants to merge 1 commit into from
Closed

model summary print instead of logging #562

wants to merge 1 commit into from

Conversation

awaelchli
Copy link
Contributor

@awaelchli awaelchli commented Nov 29, 2019

Before submitting

  • Was this discussed/approved via a Github issue?
  • Did you read the contributor guideline?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

Fixes #518. Model summary printing should be controlled by trainer argument weights_summary (full, top, None), not logging level. Using the print function should be ok in this case.

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not move back to print

@williamFalcon
Copy link
Contributor

agreed. why can’t we use logging?

if there’s some technical hurdle we can move to print for this part since the summary is the first thing that happens and logging is there to not break progress bar flow

@awaelchli
Copy link
Contributor Author

Ok then, I must be misunderstanding how this works. From what I saw in the code, the logger is set to info level but logging.info doesn't print anything, so doesn't seem to work as intended. What if the PL user wants to use logging in their training? I'll leave it to someone else who has more experience with this package.

@awaelchli awaelchli closed this Nov 29, 2019
@awaelchli awaelchli deleted the patch-3 branch March 7, 2020 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

versions after .5.2.1 do not print weights summary
3 participants